LiveGroupView.ToProperty(Action>>) method¶
Defined in
Type: LiveGroupViewReactiveList.Reactive.Queries Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public LiveGroupView<TKey, T> ToProperty(Action<ReadOnlyObservableCollection<ReactiveGroup<TKey, T>>> propertySetter)public LiveGroupView<TKey, T> ToProperty(out ReadOnlyObservableCollection<ReactiveGroup<TKey, T>> collection)
1. Overload¶
public LiveGroupView<TKey, T> ToProperty(Action<ReadOnlyObservableCollection<ReactiveGroup<TKey, T>>> propertySetter)
View source (opens in a new tab)
Summary: Assigns the groups collection to a property using the specified setter action.
Parameters
| Name | Type | Description |
|---|---|---|
propertySetter | Action | An action that sets a property to the read-only observable collection of groups. |
Returns: LiveGroupView
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if propertySetter is null. |
2. Overload¶
public LiveGroupView<TKey, T> ToProperty(out ReadOnlyObservableCollection<ReactiveGroup<TKey, T>> collection)
View source (opens in a new tab)
Summary: Returns the current instance and provides the read-only observable collection of groups.
Parameters
| Name | Type | Description |
|---|---|---|
out collection | ReadOnlyObservableCollection | When this method returns, contains the read-only observable collection of groups. |
Returns: LiveGroupView